package com.example.demo.mapper;

import com.example.demo.model.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface MemberMapper {

    int insertMember(@Param("name") String name, @Param("introduction") String introduction, @Param("position") String position, @Param("sex") String sex);

    int deleteById(@Param("id") Integer id);

    List<Member> selectMember();

    Member selectMemberById(Integer id);
}
